package com.holzer.fusedoc.dialogs;

import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.jface.preference.PreferenceManager;
import org.eclipse.swt.widgets.Shell;

/**
 * The main Fusedoc dialog window
 * @author justin
 */
public class FusedocDialog
{

	/**
	 * the <code>FusedocPreferenceDialog</code> object for which this class is a wrapper
	 */
	private FusedocPreferenceDialog dialog;
	
	/**
	 * An implementation of the PreferenceDialog class.
	 * @author Justin Holzer
	 */
	private class FusedocPreferenceDialog extends PreferenceDialog
	{
		public FusedocPreferenceDialog(Shell parentShell, PreferenceManager manager)
		{
			super(parentShell, manager);
		}

		@Override
		protected void configureShell(Shell newShell)
		{
			super.configureShell(newShell);
			newShell.setText("Generate Fusedoc");
		}
	}
	
	/**
	 * Creates a new Fusedoc dialog using the given shell as the parent container
	 * @param parentShell 
	 */
	public FusedocDialog(Shell parentShell)
	{
		PreferenceManager prefMgr = new PreferenceManager();
		this.dialog = new FusedocPreferenceDialog( parentShell, prefMgr );
		
		// creates the navigation tree that will show in the 
		this.createNavigationTree();
	}

	/**
	 * Creates the navigation tree that will be displayed in the dialog's tray  
	 */
	private void createNavigationTree()
	{
		
	}

}


